From eb95c14b59dc12cbc9a2614361a7ec8bcd483e21 Mon Sep 17 00:00:00 2001 From: Collectd Packaging Team Date: Mon, 22 Aug 2022 16:24:43 +0100 Subject: [PATCH] fix-nut-integer-sizes =================================================================== Gbp-Pq: Name fix-nut-integer-sizes --- src/nut.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nut.c b/src/nut.c index 579ecb7..f4362e3 100644 --- a/src/nut.c +++ b/src/nut.c @@ -46,7 +46,7 @@ struct nut_ups_s { collectd_upsconn_t *conn; char *upsname; char *hostname; - int port; + uint16_t port; nut_ups_t *next; }; @@ -250,7 +250,7 @@ static int nut_read(user_data_t *user_data) { const char *query[3] = {"VAR", ups->upsname, NULL}; unsigned int query_num = 2; char **answer; - unsigned int answer_num; + size_t answer_num; int status; /* (Re-)Connect if we have no connection */ -- 2.30.2